home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15961 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  910 b 

  1. Path: news.icubed.com!usenet
  2. From: stevejones@ansys.com (Steve Jones)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: CFormView and SetWindowText()
  5. Date: 4 Apr 1996 15:18:10 GMT
  6. Organization: Infobahn International, Inc.
  7. Sender: sj2393@ansys.com (Steve Jones)
  8. Message-ID: <4k0p7i$btp@news.icubed.com>
  9. NNTP-Posting-Host: 192.104.24.222
  10. X-Newsreader: knews 0.9.6
  11.  
  12. Using MFC:
  13.  
  14. I've got an MDI app using a CFormView derived class for the
  15. views.  I collect data from via controls in this view.  Once
  16. I get a particular CString datum, m_filename, I try to
  17. change the view windows caption in the title bar to that
  18. CString:
  19.  
  20. SetWindowText(m_filename);
  21.  
  22. However, nothing happens.  GetWindowText() returns my
  23. string.  But visually, the change doesn't take effect.  I do
  24. this sort of thing regularly with dialog windows without any
  25. trouble.  What am I doing wrong?
  26.  
  27. steve
  28. stevejones@ansys.com
  29.  
  30.